package com.papers.juan.domain.bo;

import com.papers.common.core.domain.BaseEntity;
import com.papers.common.core.validate.AddGroup;
import com.papers.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 试卷题目业务对象 t_juan_paper_question
 *
 * @author papers
 * @date 2022-10-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TJuanPaperQuestionBo extends BaseEntity {

    /**
     * ID
     */
    @NotBlank(message = "ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String paperId;

    /**
     * 题目ID
     */
    @NotBlank(message = "题目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String questionId;

    /**
     * 分值
     */
    @NotNull(message = "分值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long SCORE;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createdBy;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createdTime;

    /**
     * 更新人
     */
    @NotBlank(message = "更新人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updatedBy;

    /**
     * 更新时间
     */
    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedTime;


}
